# Contributor: Vlad Glagolev <scm@vaygr.net>
# Maintainer: Vlad Glagolev <scm@vaygr.net>
pkgname=imediff
pkgver=2.6
pkgrel=1
url="https://github.com/osamuaoki/imediff"
pkgdesc="ncurses-based 2/3 file merge tool"
arch="noarch"
license="GPL-2.0-or-later"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/osamuaoki/imediff/archive/$pkgver.tar.gz"
options="!check" # outdated test suite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
4d5abb2285580776e43f2c752bb90e631fb7ed9daaa83e62d488aa000077ed22404086bcc3bc4fe53ce1f166415a94ebae271c48b91cf05ffad55c3b4e5049e3  imediff-2.6.tar.gz
"
